package response;

import core.Constants;
import core.GamePacket;
import core.GameUser;

public class ResponseBuddyRemove extends GameResponse{
    private short status;

    public void setStatus(short status) {
        this.status = status;
    }
    public ResponseBuddyRemove() {
        code = Constants.SMSG_BUDDY_REMOVE;
    }

    @Override
    public byte[] createResponse(){
        // Protocol: short status
        // 0 --> error
        // 1 --> success
        GamePacket packet = new GamePacket(code);
        packet.addUint16(status);

        return packet.getBytes();
    }
}